﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;

namespace DreamBuilder.UI.UserControls
{
    public class ListTemplateCheckColumn : ITemplate
    {
        private string Id = string.Empty;

        public ListTemplateCheckColumn()
        {

        }
        public ListTemplateCheckColumn(string id)
        {
            this.Id = id;
        }

        public void InstantiateIn(Control container)
        {
            System.Web.UI.WebControls.CheckBox checkBox = new System.Web.UI.WebControls.CheckBox();
            checkBox.ID = "chkSel";
            checkBox.AutoPostBack = false;
            checkBox.Attributes.Add("onclick", "SetTRColor(this)");
            container.Controls.Add(checkBox);
        }
    }
}
